<!DOCTYPE html>
<html>

<head>
    <title>登录 - 物业管理系统</title>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${ctxPath}/assets/common/layui/css/layui.css"/>
    <link rel="stylesheet" href="${ctxPath}/assets/common/css/login.css" media="all">
    <style>
        body {

            background-image: url("${ctxPath}/assets/common/images/BG.png");
            background-repeat: no-repeat;
            background-size: 100% 100%;
            background-attachment: fixed;
            height:80%
        }

        .login-header {
            color: rgba(0, 0, 0, .85) !important;
        }

        .login-footer {
            color: rgba(0, 0, 0, 0.7) !important;
        }

        .login-footer a {
            color: rgba(0, 0, 0, 0.7) !important;
        }

        .login-footer a:hover {
            color: rgba(0, 0, 0, 0.4) !important;
        }
        /*.login-body{
            background-image: url("${ctxPath}/assets/common/images/BG-BODY.png");
            background-repeat: no-repeat;
            !*margin-top: 3%;
            margin-left: 13%;
            height: 90%;*!
        }*/
        .vi{
            border-top: none;
            border-left: none;
            border-bottom: none;
            width: 1px;
            height: 23px;
            background: rgba(255,255,255,0.25);
            display: inline-block;

            margin-bottom: -5px;

        }
        body {
            margin: 0;
        }
        .header {
            width: 100%;
            height: 54px;
            position: fixed;
            border-bottom: 1px solid #e4e6e9;
            background: #ccc;
        }
        .sidebar {
            position: fixed;
            top: 54px;
            bottom: 0;
            left: 0;
            width: 300px;
            border-right: 1px solid #e4e6e9;
            background-color: #fff;
        }
        .content {
            position: fixed;
            top: 54px;
            right: 0;
            bottom: 0;
            left: 301px;
            overflow-y: auto;
            background-color: #fff;
        }





        html,body{
            height: 100vh;
        }
        .login-w{
            display: flex;
            flex-direction: column;
            overflow: hidden;
            height: 100%;
            width: 100%;
        }
        .login-h{
            height: 100px;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            padding-left: 30px;
        }
        .login-body{
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0;

        }
        .login-form{
            width: 396px;
            height: 460px;
            background: #FFFFFF;
            border-radius: 4px;
            margin-left: 50px;
        }
        .login-v{
            max-height: 100%;
            display: flex;
            align-items: center;
        }
    </style>
    <script>
        if (window != top)
            top.location.replace(location.href);
    </script>
</head>

<body>
<div class="login-w" style="">

    <div class="login-h">
        <img style="height: 30px;width: 30px;" src="${ctxPath}/assets/common/images/ase_logo.svg"/>
        <span style="font-family: PingFangSC-Medium;font-size: 18px;color: #FFFFFF;line-height: 22px;font-weight: 500;">日月光集团</span>
        &nbsp;&nbsp;&nbsp;&nbsp;<div class="vi"></div>&nbsp;&nbsp;
        <span style="font-family: PingFangSC-Light;font-size: 18px;color: #FFFFFF;line-height: 22px;    font-weight: 100;">物业管理系统</span>
    </div>

    <div class=" login-body">
        <div class="login-v">
            <img src="${ctxPath}/assets/common/images/BG-BODY.png">
        </div>
        <div  class="login-form" >
            <div style="height: 92px;line-height: 132px;text-align: center;font-family: PingFangSC-Medium;font-size: 24px;color: rgba(0,0,0,0.85);letter-spacing: 0; font-weight: bolder;">
                登 录

            </div>
            <div style="    text-align: center;font-family: PingFangSC-Regular;font-size: 14px;color: rgba(0,0,0,0.45);letter-spacing: 0;">
                <span>
                    登录后即可正常访问物业管理系统
                </span>
            </div>
            <div style="height: 300px;">
            <form class="layui-card-body layui-form layui-form-pane" action="${ctxPath}/login" method="post">
                <div style="height: 100px;">
                    <div style="margin-left: 24px;margin-top: 22px;">
                        <input  name="username" placeholder="请输入您的账号" type="text" lay-verify="required" class="layui-input" style="border: 1px solid #D9D9D9;border-radius: 2px;width: 316px;height: 54px;">
                    </div>
                </div>
                <div style="height: 100px">
                    <div style="margin-left: 24px;margin-top: -7px;">
                        <input name="password" placeholder="请输入您的密码" type="password" lay-verify="required" class="layui-input" style="border: 1px solid #D9D9D9;border-radius: 2px;width: 316px;height: 54px;">
                    </div>
                </div>
                <!--<div class="layui-form-item" pane="">
                    <label class="layui-form-label" lay-tips="7天内免登陆">记住我</label>
                    <div class="layui-input-block">
                        <input type="radio" name="remember" value="on" title="是">
                        <input type="radio" name="remember" value="off" title="否" checked="">
                    </div>
                </div>-->
                <!--<div class="layui-form-item">-->
                <!--<label class="layui-form-label"><i class="layui-icon layui-icon-vercode"></i></label>-->
                <!--<div class="layui-input-block">-->
                <!--<div class="layui-row inline-block">-->
                <!--<div class="layui-col-xs7">-->
                <!--<input name="code" type="text" lay-verify="required" placeholder="验证码"-->
                <!--class="layui-input">-->
                <!--</div>-->
                <!--<div class="layui-col-xs5" style="padding-left: 10px;">-->
                <!--<img class="login-captcha" src="https://www.oschina.net/action/user/captcha">-->
                <!--</div>-->
                <!--</div>-->
                <!--</div>-->
                <!--</div>-->
                <!--<div class="layui-form-item">
                    <a href="javascript:;" class="layui-link">帐号注册</a>
                    <a href="javascript:;" class="layui-link pull-right">忘记密码？</a>
                </div>-->
                <div class="layui-form-item" style="margin-left: 16px">
                    <button lay-filter="login-submit" class="layui-btn layui-btn-fluid" style="    background: #3470FF;border-radius: 2px;border-radius: 2px;width: 316px;height: 54px; margin-left: 8px;" lay-submit>登 录</button>
                </div>
                <!--<div class="layui-form-item login-other">
                    <label>第三方登录</label>
                    <a href="javascript:;"><i class="layui-icon layui-icon-login-qq"></i></a>
                    <a href="javascript:;"><i class="layui-icon layui-icon-login-wechat"></i></a>
                    <a href="javascript:;"><i class="layui-icon layui-icon-login-weibo"></i></a>
                </div>-->
            </form>
            </div>
        </div>
    </div>

    <!--<div class="login-footer">
        <p>© 2018 <a href="https://www.stylefeng.cn" target="_blank">stylefeng版权所有</a></p>
    </div>-->
</div>

@/* 加入contextPath属性和session超时的配置 */
<script type="text/javascript">
    var Feng = {
        ctxPath: "",
        addCtx: function (ctx) {
            if (this.ctxPath === "") {
                this.ctxPath = ctx;
            }
        }
    };
    Feng.addCtx("${ctxPath}");
</script>
<script type="text/javascript" src="${ctxPath}/assets/common/layui/layui.js"></script>
<script type="text/javascript" src="${ctxPath}/assets/common/js/common.js"></script>

<script>
    layui.use(['layer', 'form'], function () {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;

        // 表单提交
        form.on('submit(login-submit)', function (obj) {
            return true;
        });

        // 图形验证码
        // $('.login-captcha').click(function () {
        //     this.src = this.src + '?t=' + (new Date).getTime();
        // });

        var errorMsg = "${tips!}";
        if (errorMsg) {
            layer.msg(errorMsg, {icon: 5, anim: 6});
        }

    });
</script>


</body>
</html>